package org.vaadin.nf4v.core.handler;

import com.vaadin.ui.Component;

/**
 * Handler is responsible for resolving home page for context.
 * <p/>
 * It is used to resolve default page on first window showing.
 * <p/>
 * OVERRIDING: may be overridden for context.
 */
// todo think: probably remove: CONTEXT_ACTIVATED event allows to implement the same logic
public interface HomePageResolver extends Handler {
    /**
     * Reslves home page of provided context
     *
     * @param context context to resolve home page in
     * @return home page class
     */
    Class<? extends Component> resolveHomePage(String context);
}
